package com.ge.modules.api.service.impl;

import com.ge.modules.api.service.TbCommodityService;
import com.ge.modules.dao.TbCommodityDao;
import com.ge.modules.entity.TbCommodityEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;




@Service
public class TbCommodityServiceImpl implements TbCommodityService {
	@Autowired
	private TbCommodityDao tbCommodityDao;
	
	@Override
	public TbCommodityEntity queryObject(TbCommodityEntity tbCommodityEntity){
		return tbCommodityDao.queryObject(tbCommodityEntity);
	}

	@Override
	public List<TbCommodityEntity> queryList(TbCommodityEntity tbCommodityEntity) {
		return tbCommodityDao.queryList(tbCommodityEntity);
	}

	@Override
	public List<TbCommodityEntity> queryListObject(TbCommodityEntity tbCommodityEntity) {
		return tbCommodityDao.queryListObject(tbCommodityEntity);
	}

	@Override
	public List<TbCommodityEntity> queryList(Map<String, Object> map){
		return tbCommodityDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tbCommodityDao.queryTotal(map);
	}
	
	@Override
	public void save(TbCommodityEntity commodity){
		tbCommodityDao.save(commodity);
	}
	
	@Override
	public void update(TbCommodityEntity commodity){
		tbCommodityDao.update(commodity);
	}

	@Override
	public void delete(Integer id){
		tbCommodityDao.delete(id);
	}

	@Override
	public void deleteBatch(Integer[] ids){
		tbCommodityDao.deleteBatch(ids);
	}

	@Override
	public void updateBatch(Integer[] ids) {
		tbCommodityDao.updateBatch(ids);
	}

//	@Override
//	public TbCommodityEntity getByCode(String commoditycode) {
//		return tbCommodityDao.getByCode(commoditycode);
//	}

}
